import request from '@/utils/request'

// 查询动物照料列表
export function listCare(query) {
  return request({
    url: '/animal/care/list',
    method: 'get',
    params: query
  })
}

// 查询动物照料详细
export function getCare(careId) {
  return request({
    url: '/animal/care/' + careId,
    method: 'get'
  })
}

// 新增动物照料
export function addCare(data) {
  return request({
    url: '/animal/care',
    method: 'post',
    data: data
  })
}

// 修改动物照料
export function updateCare(data) {
  return request({
    url: '/animal/care',
    method: 'put',
    data: data
  })
}

// 删除动物照料
export function delCare(careId) {
  return request({
    url: '/animal/care/' + careId,
    method: 'delete'
  })
}
